﻿<%@ Page Language="C#" EnableViewState="false" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="EmpInsuranceList.aspx.cs"
    Inherits="UI.ModEmployee.EmpInsuranceList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>保险信息列表</title>
    <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
    <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
</head>
<body >
    <form id="form1" runat="server">
    <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            保险信息列表</div>
        <div class="pagetopright">
            工号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="75px"></asp:TextBox>
            <asp:DropDownList ID="ddlStatu" runat="server">
                <asp:ListItem Value="A">状态</asp:ListItem>
                <asp:ListItem Value="Y">正式</asp:ListItem>
                <asp:ListItem Value="T">临时</asp:ListItem>
                <asp:ListItem Value="N">过期</asp:ListItem>
            </asp:DropDownList>
            日期<asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            至<asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            <asp:DropDownList ID="ddlTimeType" runat="server">
                <asp:ListItem Value="InputTime">录入时间</asp:ListItem>
                <asp:ListItem Value="BeginTime">生效时间</asp:ListItem>
                <asp:ListItem Value="EndTime">过期时间</asp:ListItem>
                <asp:ListItem Value="CheckTime">审核时间</asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="btnEmSearch" runat="server" Text="查询" OnClick="btnEmSearch_Click"
                CssClass="ButtonCss" />
           
            <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" OnClick="btnExcel_Click" />
            <asp:Button ID="btnIn" runat="server" Text="导入" CssClass="ButtonCss"  />
            <asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss" />
            &nbsp;
        </div>
    </div>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="InsuranceID" Width="1200" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
        CellPadding="3" GridLines="Horizontal" OnRowDataBound="gvList_RowDataBound" CssClass="td">
        <Columns>
            <asp:BoundField DataField="InsuranceID" HeaderText="InsuranceID" SortExpression="InsuranceID">
            </asp:BoundField>
             <asp:BoundField DataField="DeptName" HeaderText="部门" SortExpression="DeptName" >
                <ItemStyle HorizontalAlign="Center" Width="90px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="工号" SortExpression="EmpCode"   ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('EmpInsuranceAdd.aspx?InsuranceID=<%# Eval("InsuranceID")%>',800,550)">
                        <%# Eval("EmpCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="70px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="员工姓名" SortExpression="EmpName"   ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="javascript:ShowLink('EmpInsuranceAdd.aspx?InsuranceID=<%# Eval("InsuranceID")%>',800,550)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
              <asp:BoundField DataField="EmpSex" HeaderText="性别" SortExpression="EmpSex">
                <ItemStyle Width="40px" />
            </asp:BoundField>
              <asp:BoundField DataField="DutyName" HeaderText="职位" SortExpression="DutyName">
                <ItemStyle Width="80px" />
            </asp:BoundField>

            <asp:BoundField DataField="ZipCode" HeaderText="身份证" SortExpression="ZipCode">
                <ItemStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="TypeName" HeaderText="保险类别" SortExpression="TypeName">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="InsuranceNo" HeaderText="单号" SortExpression="InsuranceNo">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="InsurancePeriod" HeaderText="周期" SortExpression="InsurancePeriod">
                <ItemStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="BaseValue" HeaderText="基数" SortExpression="BaseValue">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="EmpPay" HeaderText="员工支付" SortExpression="EmpPay">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="ComPay" HeaderText="公司支付" SortExpression="ComPay">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="BeginTime" HeaderText="开始时间" DataFormatString="{0:d}"
                SortExpression="BeginTime">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="EndTime" HeaderText="结束时间" DataFormatString="{0:d}" SortExpression="EndTime">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="Statu" HeaderText="状态" SortExpression="Statu">
                <ItemStyle Width="60px" />
            </asp:BoundField>
             <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                <ItemStyle Width="100px" />
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
    <div id="divAmount" class="amountLine">
    <asp:Label ID="lbAmount" runat="server" ></asp:Label>
    </div>
    <br />
    </form>
</body>
</html>
